/*
 * Copyright (c) gitee.com/jiandong001.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

import { Message } from './Message';
import { Handler } from './Handler';
import { Looper } from './Looper';

//TODO , call harmony related functionality

export class MessageQueueThreadHandler extends Handler {

//  private readonly mExceptionHandler: QueueThreadExceptionHandler;

  public constructor(looper: Looper, /*exceptionHandler: QueueThreadExceptionHandler*/) {
    super(looper);
//    mExceptionHandler = exceptionHandler;
  }

//  @Override
  public dispatchMessage(msg: Message) {
    try {
      super.dispatchMessage(msg);
    } catch (e) {
//      mExceptionHandler.handleException(e);
    }
  }
}
